package io.model;

import java.util.Date;

public class Cow {
    private String name;
    private Double weight;
    private Double height;
    private Date birthdate;
    private Date deathdate;

    @Override
    public String toString() {
        return "Cow{" +
                "name='" + name + '\'' +
                ", weight=" + weight +
                ", height=" + height +
                ", birthdate=" + birthdate +
                ", deathdate=" + deathdate +
                '}';
    }

    public Cow() {
        System.out.println("Cow无参构造执行了...");
    }

    public Cow(String name, Double weight, Double height) {
        this.name = name;
        this.weight = weight;
        this.height = height;
    }

    public Cow(String name, Double weight, Date deathdate) {
        this.name = name;
        this.weight = weight;
        this.deathdate = deathdate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public Date getDeathdate() {
        return deathdate;
    }

    public void setDeathdate(Date deathdate) {
        this.deathdate = deathdate;
    }
}
